package com.homework03;

import java.util.Random;

/*
生成 10个 [40,45] 之间的随机数输出到控制台
*/
public class work09 {
    public static void main(String[] args) {
        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            int num = 40 + random.nextInt(6);
            System.out.println(num);
        }
    }
}
